package top.superflow.db.orientdb

import top.superflow.db.api.DBMetadata
import com.orientechnologies.orient.core.metadata.OMetadataDefault
import top.superflow.verify.Ensure
import com.orientechnologies.orient.core.metadata.OMetadata

class OrientMetadata(realMeta : OMetadata) extends DBMetadata
                                                  with Ensure{
  
  notNull(realMeta, "The argument realMeta should not be null")
  
  val metadata = realMeta
  val schema = new OrientSchema(this.metadata.getSchema)
  
  def getSchema : OrientSchema =  {
    this.schema
  }
  
}